package weiy.top.modules.purchase.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import weiy.top.modules.purchase.entity.WmsPurchaseDetail;
import weiy.top.modules.purchase.mapper.WmsPurchaseDetailMapper;
import weiy.top.modules.purchase.service.IWmsPurchaseDetailService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: wms_purchase_detail
 * @Author: weihancheng
 * @Date:   2021-12-14
 * @Version: V1.0
 */
@Service
public class WmsPurchaseDetailServiceImpl extends ServiceImpl<WmsPurchaseDetailMapper, WmsPurchaseDetail> implements IWmsPurchaseDetailService {

    @Override
    public List<WmsPurchaseDetail> getPurchaseDetailByPurchaseId(String id) {
        LambdaQueryWrapper<WmsPurchaseDetail> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(WmsPurchaseDetail::getPurchaseId, id);
        return list(queryWrapper);
    }
}
